<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        
        <p>添加新邮箱：</p>
        <input type="text" placeholder="请输入邮箱" :value="uu" @input="uu=$event.target.value"><br>
        <input type="button" value="添加" @click="arr.push(uu),uu=''"><br>
        
        <span v-if="arr==''?true:false">请先添加邮箱</span>
        <div v-for="(item,i) in arr">
            <input type="checkbox" name="" id="">
           <span>{{item}}</span>
           <input type="button" value="删除" @click="arr.splice(i,1)">

        </div>
        
    </div>
    <script type="module">
        import { createApp } from "./assets/vue3/vue.esm-browser.js";
        createApp({
            data() {
                return {
                    uu:'',
                    arr:[],
                   
                    
                }
            }
        }).mount("#app");
    </script>
</body>
</html>